package 抽象工厂.DBFactory;

public class Client {
    public static void main(String[] args) {
        //获取到oracle工厂
        System.out.println("-----------oracle工厂生产的：--------------------");

        DBFactory oracleFactory = new OracleFactory();
        oracleFactory.getConnection();
        oracleFactory.getStatement();

        //获取到mysql工厂
        System.out.println("-----------mysql工厂生产的：--------------------");
        DBFactory mySQLFactory = new MySQLFactory();
        mySQLFactory.getStatement();
        mySQLFactory.getConnection();
    }
}
